package com.liuhangs.learning.crowd.webui.security.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**权限校验服务类
 * @author 11757
 * @DATE 2020/6/18
 */
public interface PermissionService {

    /**
     * 检验用户是否有权限访问某个页面
     * @param request
     * @param authentication
     * @return
     */
    public boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
